home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / x2ftp / msdos / libs / knowhow4 / mouse2.h < prev    next >
C/C++ Source or Header  |  1994-10-10  |  812b  |  29 lines

  1. #ifndef __MOUSE2_H
  2. #define __MOUSE2_H
  3.  
  4. #ifndef __MOUSE_H
  5. #include "mouse.h"
  6. #endif
  7. //
  8. //   extended mousestatus::buttonstate constants
  9. //
  10. //   Double-click pending constants:
  11. //
  12.  enum MDOUBLECLICK{MOUSELEFT2=0x100,MOUSERIGHT2=0x200,MOUSECENTER2=0x400};
  13.  
  14. #define DEFAULTDOUBLECLICKSPEED 6
  15. //
  16. //  Extended routine, returning button press state ORed with
  17. //    double-click pending state:
  18. //
  19. mousestatus mouseGetStatus2();
  20. //
  21. //  Double click pending state starts at the moment of second button
  22. //  press and ends with the release of the button
  23. //
  24. loc mouseClearDoubleClick();  // Clear mouse double-click pending state
  25.                   // and return coordinates of last mouse
  26.                   // button press or release
  27. void  mouseSetDoubleClick(int speed=DEFAULTDOUBLECLICKSPEED);
  28. #endif //__MOUSE2_H
  29.